package com.txx.myspringboot.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

@Slf4j
public class FirstListener implements ApplicationListener<ApplicationStartingEvent> {


    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {
        log.info("come in staring Evnet...");
        SpringApplication springApplication = event.getSpringApplication();
        log.info("end staring Evnet...");
    }
}
